import api from "./index";

// 地址数据请求接口
export default {
	// 推广中心
	getPopularizeCenter: () => api.get("/applet/royalty/getStatistics"),
	// 推广中心-分销提成记录
	// getRoyaltyRecord: (params) => api.get("/applet/royalty/getRoyaltyRecordPage", params),
	getRoyaltyRecord: (params) => api.get("/applet/royalty/selectRoyaltyRecord", params),
	// 推广中心-提现明细
	getStatistics: () => api.get("/applet/record/statistics"),
	// 推广中心-提现记录
	getStatisticsList: (params) => api.get("/applet/record/list", params),

	// 推广中心-我的团队
	getMineGroupNew: () => api.get("/applet/royalty/mineGroupNew"),
	// 推广中心-其他团队
	// getElseGroupNew: (params) => api.get("/applet/royalty/elseGroupNew", params),
	getElseGroupNew: (params) => api.get("/applet/royalty/findUserTeam", params),

	// 推广中心-我的团队
	getMineGroup: () => api.get("/applet/royalty/mineGroup"),
	// 推广中心-其他团队
	getElseGroup: (params) => api.get("/applet/royalty/elseGroup", params),
	// 我的余额
	getMyBalance: () => api.get("/applet/mine/topStatistics"),
	// 余额-收入明细
	getIncomeList: () => api.get("/applet/mine/appletIncomeList"),
	getSystemExpenditurePage: (params) => api.get("/system/change/expenditurePage", params),
	expenditurePage: (params) => api.get("/applet/change/getExpenditurePage", params),

	// 余额-支出明细
	getExpensesList: () => api.get("/applet/mine/appletExpensesList"),
	getExpenditurePage: (params) => api.get("/applet/change/expenditurePage", params),
	// 云库存列表
	getCloudList: () => api.get("/applet/cloudInventory/listByUser"),
	// 云库存明细
	getCloudDetail: (params) => api.get("/applet/cloudInventory/listByCloudInventoryId", params),
	// 云库存-补货查看商品详情
	getCommodityDetails: (params) => api.get("/applet/cloudInventory/getCommodityDetails", params),
	// 云库存-补货
	cloudPurchase: (params) => api.post("/applet/cloudInventory/cloudInventoryPurchase", params),
	// 云库存-提货到线下
	cloudInventoryPickup: (params) => api.post("/applet/cloudInventory/cloudInventoryPickup", params),
	// 积分明细
	getIntegralDetail: () => api.get("/applet/change/listPage"),
	// 隐私协议
	getAgreements: () => api.get("/applet/agreements/list"),
	// 搜索用户
	getUser: (params) => api.get("/applet/cloudInventory/getUser", params),
	// 云库存-补货
	cloudWarehouseReplenishment: (params) => api.post("/applet/cloudInventory/cloudWarehouseReplenishment", params),
	// 上级
	getUserSuperior: () => api.get("/applet/royalty/getUserSuperior"),

	//云库存下级
	listAgencyInventoryByUserId: (params) => api.get("/system/cloudInventory/listAgencyInventoryByUserId", params),
	agencyInventory: (params) => api.get("/system/cloudInventory/agencyInventory", params),

	//运费
	getCostList: (data) => api.post("/applet/good/getCostPrice", data),
	//余额支付
	payCloudInventoryOrder: (data) => api.post("/applet/cloudInventory/payCloudInventoryOrder", data),
	//取消支付
	cloudInventory: (data) => api.post("/applet/cloudInventory/cloudInventory", data),


};